package com.sumainfor.wx.tenant.controller;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.wx.tenant.service.TctenTenantEvaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * <p>
 * 租客信息
 * <p>
 *
 * @author: zhoucong
 * @create: 2019-05-05 19:06
 **/
@Controller
@RequestMapping("/key/tctenTenantEva")
public class TctenTenantEvaController {

    @Autowired
    TctenTenantEvaService tctenTenantEvaService;

    @ResponseBody
    @PostMapping("/getTenantTenPhone")
    public JsonResult getTenantTenPhone(@RequestBody Map<String,Object> params){
        return tctenTenantEvaService.getTenantTenPhone(params);
    }

    /**
    * <p>
    * 查询租客信息
    * </p>
    *
    * @author: zhoucong
    * @since:
    */
    @ResponseBody
    @PostMapping("/getTenantList")
    public JsonResult getTenantList(@RequestBody Map<String,Object> params){
        return tctenTenantEvaService.getTenantList(params);
    }
}
